package com.example.zg.zg_312_ordering_new.services;

import com.example.zg.zg_312_ordering_new.beans.Result;
import com.example.zg.zg_312_ordering_new.beans.User;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface PurchaseService {
    @GET("getUserById.do")
    Call<List<User>>getUserById(@Query("user_id")int user_id);
    @GET("insertOrder.do")
    Call<Result>insertOrder(@Query("user_id") int user_id,
                            @Query("food_id") int food_id,
                            @Query("num") int num,
                            @Query("sum") double sum,
                            @Query("suggesttime") String suggesttime,
                            @Query("address") String address
    );
}
